package com.zhenglide.config;

import com.baomidou.mybatisplus.core.incrementer.IKeyGenerator;
import org.springframework.stereotype.Component;

@Component("myOracleKeyGenerator")
public class MyOracleKeyGenerator implements IKeyGenerator {
    @Override
    public String executeSql(String incrementerName) {
        return "select emp_seq.nextval from  dual";
    }
}
